package edu.cqbvc.dao;

import java.util.Objects;

public class AdminInfo {
	private String adminId;
	private String adminName;
	private String adminPassword;
	private byte adminOnline;
	public AdminInfo() {
	}
	
	
	
	public AdminInfo(String adminId, String adminName, String adminPassword, byte adminOnline) {
		super();
		this.adminId = adminId;
		this.adminName = adminName;
		this.adminPassword = adminPassword;
		this.adminOnline = adminOnline;
	}



	public String getAdminId() {
		return adminId;
	}



	public void setAdminId(String adminId) {
		this.adminId = adminId;
	}



	public String getAdminName() {
		return adminName;
	}



	public void setAdminName(String adminName) {
		this.adminName = adminName;
	}



	public String getAdminPassword() {
		return adminPassword;
	}



	public void setAdminPassword(String adminPassword) {
		this.adminPassword = adminPassword;
	}



	public byte getAdminOnline() {
		return adminOnline;
	}



	public void setAdminOnline(byte adminOnline) {
		this.adminOnline = adminOnline;
	}

	

	@Override
	public int hashCode() {
		return Objects.hash(adminId, adminName, adminOnline, adminPassword);
	}



	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (!(obj instanceof AdminInfo)) {
			return false;
		}
		AdminInfo other = (AdminInfo) obj;
		return Objects.equals(adminId, other.adminId) && Objects.equals(adminName, other.adminName)
				&& adminOnline == other.adminOnline && Objects.equals(adminPassword, other.adminPassword);
	}



	@Override
	public String toString() {
		return getAdminName();
	}
	
	
	
}
